import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

enum LxFontWeightEnum {
  // 字重600
  diplayLarge(64, FontWeight.w600),
  diplayMedium(48, FontWeight.w600),
  headlineLarge(36, FontWeight.w600),
  headlineMedium(28, FontWeight.w600),
  headlineSmall(24, FontWeight.w600),
  titleExtraLarge(20, FontWeight.w600),
  titleLarge(18, FontWeight.w600),
  titleMedium(16, FontWeight.w600),
  titleSmall(14, FontWeight.w600),
  markSmall(12, FontWeight.w600),
  markExtraSmall(10, FontWeight.w600),
  // 字重400
  extraLarge(20, FontWeight.w400),
  bodyLarge(16, FontWeight.w400),
  bodyMedium(14, FontWeight.w400),
  bodySmall(12, FontWeight.w400),
  bodyExtraSmall(10, FontWeight.w400),
  // 带下划线
  linkLarge(16, FontWeight.w400),
  linkMedium(14, FontWeight.w400),
  linkSmall(12, FontWeight.w400);

  final double _size;
  final FontWeight _fontWeight;
  const LxFontWeightEnum(this._size, this._fontWeight);

  double get size => _size.w;
  FontWeight get fontWeight => _fontWeight;
}
